package java基础语法练习.declare;

import java基础语法练习.ExampleObj;

import java.lang.reflect.Field;

/**
 * @author caihe
 * @date 2021/10/20 10:05
 */
public class GetDeclaredFieldExample {

    public static void main(String[] args) {
        try {
            Field state = ExampleObj.class.getDeclaredField("state");
            System.out.println(state);
        } catch (NoSuchFieldException e) {
            e.printStackTrace();
        }

    }
    
}
